using System.Collections.Generic;
namespace MobaHero {
	class MsgString {
		Dictionary<int, string> dict = new Dictionary<int, string>();
		Dictionary<int, int> req2respMap = new Dictionary<int, int>();
		static MsgString inst = new MsgString(); 
		public static MsgString Instance { get { return inst; } }
		public string Get(int id) { string res = null; dict.TryGetValue(id, out res); return res; }
		public int GetRespID(int reqId) { int res = -1; req2respMap.TryGetValue(reqId, out res); return res; }
		private MsgString() {
			dict[0] = "Share.Package";
			dict[65536] = "Login.Register";
			dict[65537] = "Login.RegisterResponse";

			req2respMap[65536] = 65537; // Login.Register => Login.RegisterResponse
		}
	}
}